<?php
/**
 * Created by PhpStorm.
 * User: dy
 * Date: 2020/1/7
 * Time: 14:19
 */
namespace app\admin\validate;
use app\common\validate\BaseValidate;

class ConfigValidate extends BaseValidate
{
    protected $rule = [
        'name|配置名称'=>'require|alphaDash',
        'title|配置标题'=>'require',
        'type|配置类型'=>'require',
        'group|配置分组'=>'require',
        'sort|排序'=>'number'
    ];
    protected $scene = [
        'add'=>['name','title','type','group','sort'],
        'edit'=>['name','title','type','group','sort']
    ];
}